public enum TestEnum {
RED,BLACK,GREEN,WHITE;
public static void main(String[] args) {
TestEnum testEnum2 = TestEnum.BLACK;
    switch (testEnum2) {
        case RED:
            System.out.println("red");
            break;
        case BLACK:
            System.out.println("black");
            break;
        case WHITE:
            System.out.println("WHITE");
            break;
        case GREEN:
            System.out.println("black");
            break;
        default:
            break;
    }
}
}